﻿<r:RibbonWindow x:Class="editor"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:r="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
                xmlns:local="clr-namespace:eComicEditor"
    Title="eComic Editor" Height="600" Width="800" Icon="/eComicEditor;component/ecomEdit.ico">
    <r:RibbonWindow.Resources>
        <ResourceDictionary>
            <r:RibbonCommand 
                x:Name="OpenCommand"
                x:Key="OpenCommand"
                Executed="OpenCommand_Executed"
                LabelTitle="Open"
                ToolTipTitle="Open An Existing Archive"
                ToolTipDescription="Opens an existing archive for viewing"                
                LargeImageSource="Resources/open32.png" 
                SmallImageSource="Resources/open16.gif" />
            <r:RibbonCommand 
                x:Key="ExitApplicationCommand"
                Executed="OnIgnore"
                LabelTitle="Exit"
                SmallImageSource="Resources/Exit16.png"
                LargeImageSource="Resources/Exit.png"
                />
            <r:RibbonCommand 
                x:Name="SaveApplicationCommand"
                x:Key="SaveApplicationCommand"
                Executed="SaveApplicationCommand_Executed"
                LabelTitle="Savet"
                SmallImageSource="Resources/saveHS.png"
                LargeImageSource="Resources/saveHS.png"
                />
        </ResourceDictionary>
    </r:RibbonWindow.Resources>
    <DockPanel>
        <r:Ribbon DockPanel.Dock="Top" IsMinimized="true" 
                  Name="ribbonMenu" Title="eComic Editor">
            <r:Ribbon.ApplicationMenu>
                <r:RibbonApplicationMenu>
                    <r:RibbonApplicationMenu.Command>
                        <r:RibbonCommand 
                             Executed="OnIgnore"
                             LabelTitle="Application Button"
                             LabelDescription="Close the application."
                             SmallImageSource="resources/ecomEdit-001.png"
                             LargeImageSource="resources/ecomEdit-001.png"
                             ToolTipTitle="eComic-Sequential Image Viewer"
                             ToolTipDescription="" />
                    </r:RibbonApplicationMenu.Command>
                    <r:RibbonApplicationMenuItem Command="{StaticResource OpenCommand}" />
                    <r:RibbonApplicationMenuItem Command="{StaticResource SaveApplicationCommand}" />
                    <r:RibbonApplicationMenuItem Command="{StaticResource ExitApplicationCommand}" />
                </r:RibbonApplicationMenu>
            </r:Ribbon.ApplicationMenu>
            <!-- Quick pick menu -->
            <r:Ribbon.QuickAccessToolBar>
                <r:RibbonQuickAccessToolBar CanUserCustomize="True" >
                    <r:RibbonButton Command="{StaticResource OpenCommand}" r:RibbonQuickAccessToolBar.Placement="InCustomizeMenuAndToolBar" />
                    <r:RibbonButton Command="{StaticResource SaveApplicationCommand}" r:RibbonQuickAccessToolBar.Placement="InCustomizeMenuAndToolBar" />
                    <r:RibbonButton Command="{StaticResource ExitApplicationCommand}" r:RibbonQuickAccessToolBar.Placement="InToolBar" />
                </r:RibbonQuickAccessToolBar>
            </r:Ribbon.QuickAccessToolBar>
        </r:Ribbon>
        <local:comicEditor x:Name="comicEditor" Visibility="Collapsed" />
    </DockPanel>
</r:RibbonWindow>
